<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生课程查询系统</title>
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        h1 {
            color: #1a73e8;
            text-align: center;
        }
        .container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .input-group {
            margin-bottom: 20px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }
        input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            box-sizing: border-box;
        }
        button {
            background-color: #1a73e8;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
        }
        button:hover {
            background-color: #0d5bba;
        }
        .result {
            margin-top: 20px;
            padding: 15px;
            border-radius: 4px;
            background-color: #e8f0fe;
            display: none;
        }
        .schedule {
            margin-top: 20px;
            width: 100%;
            border-collapse: collapse;
        }
        .schedule th, .schedule td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        .schedule th {
            background-color: #f2f2f2;
        }
        .schedule tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        .confirm-btn {
            margin-top: 10px;
            background-color: #34a853;
        }
        .confirm-btn:hover {
            background-color: #2d8e47;
        }
        .error {
            color: #d93025;
            margin-top: 10px;
            display: none;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>学生课程查询系统</h1>
        
        <div class="input-group">
            <label for="studentId">请输入学号：</label>
            <input type="text" id="studentId" placeholder="例如：2502056184">
            <button onclick="checkStudentId()">查询</button>
            <div id="errorMsg" class="error">学号输入错误，请重新输入</div>
        </div>
        
        <div id="nameConfirmation" class="result" style="display: none;">
            <p>学生姓名：<strong id="studentName"></strong></p>
            <p>确认姓名是否正确？</p>
            <button class="confirm-btn" onclick="showClassInfo()">确认正确</button>
            <button onclick="resetForm()">重新输入</button>
        </div>
        
        <div id="classInfo" class="result" style="display: none;">
            <h3>分班信息</h3>
            <p>班级：<strong id="className"></strong></p>
            
            <h3>课程表</h3>
            <div id="scheduleTable"></div>
            
            <button onclick="resetForm()">返回</button>
        </div>
    </div>

    <script>
        // 学生数据
        const students = {
            "2502056184": { name: "AGUS,VARREL NATHANIEL AGUS", class: "中级中文D" },
            "2502056266": { name: "EFFENDI,VALERIE", class: "中级中文D" },
            "2502056519": { name: "KHA,EMILY", class: "中级中文D" },
            "2502055216": { name: "CHISNALL,JOSEPH", class: "中级中文D" },
            "2502055609": { name: "CHUA,HAROLD BRYANT NG CHUA", class: "中级中文D" },
            "2502055673": { name: "NGU,SHANELLE ERIANNE ONG NGU", class: "中级中文D" },
            "2502055984": { name: "ARPORNSUKSANT,WILL", class: "中级中文D" },
            "2502055999": { name: "CAMACHO TORRES,DAVID JOSE", class: "中级中文D" },
            "2502056064": { name: "SEVOSTIANOVA,IRINA", class: "中级中文D" },
            "2502056076": { name: "ELBE,SAM , HENRI , ROBERT", class: "中级中文D" },
            "2502056267": { name: "DORZHEEV,EGOR", class: "中级中文D" },
            "2502056380": { name: "KIKUOKA,YUKAKO", class: "中级中文D" },
            "2502056443": { name: "XU,LEONHARD NUO", class: "中级中文D" },
            "2502055370": { name: "WOLF,ELEANOR", class: "高级中文A" },
            "2502056187": { name: "BAUDLER,EVA MARIE", class: "高级中文A" },
            "2502056261": { name: "STEEN,HELEN", class: "高级中文A" },
            "2502055616": { name: "KOON,MEIGEN KOON", class: "高级中文A" },
            "2502055902": { name: "TOMONAGA,ASUKA", class: "高级中文A" },
            "2502056182": { name: "SONG,ZIJIAN", class: "高级中文A" },
            "2502056400": { name: "BAK,YEJIN", class: "高级中文A" },
            "2502056399": { name: "EUN,YEBEEN", class: "高级中文A" },
            "2502056121": { name: "FRANKLIN,AMELLA MEI", class: "高级中文A" },
            "2502056124": { name: "LI,WILLIAM JIAN XING", class: "高级中文A" },
            "2502056126": { name: "XU,REGAN", class: "高级中文A" },
            "2502056128": { name: "HAO,HEIDI RUNHAN", class: "高级中文A" },
            "2502056130": { name: "HU,KUNYAO", class: "高级中文A" },
            "2502056131": { name: "ZHAO,WARREN", class: "高级中文A" },
            "2502056132": { name: "HANLY,CALEB YE", class: "高级中文A" },
            "2502056133": { name: "LEE,CAITLYN", class: "高级中文A" },
            "2502056135": { name: "LEE,KATHERINE PEIXIAN", class: "高级中文A" },
            "2502056265": { name: "TEPPER,SPENCER ZHIZI", class: "高级中文B" },
            "2502056316": { name: "LIU,BAO VAN", class: "高级中文B" },
            "2502056445": { name: "WALLWORK,REBECCA ELIZABETH", class: "高级中文B" },
            "2502056460": { name: "KOSOLAPOVA,NADEZHDA", class: "高级中文B" },
            "2502056456": { name: "QU,HENRIK JIA JUN", class: "高级中文B" },
            "2502056422": { name: "KIM,EUNJI", class: "高级中文B" },
            "2502056439": { name: "MOON,IYERIN", class: "高级中文B" },
            "2502056446": { name: "CHO,SUA", class: "高级中文B" },
            "2502056136": { name: "WEI,BRIAN YIFAN", class: "高级中文B" },
            "2502056138": { name: "HAN,ELLA", class: "高级中文B" },
            "2502056140": { name: "MCKAY,MIA MAY", class: "高级中文B" },
            "2502056141": { name: "ORTLIPP,ISAAC", class: "高级中文B" },
            "2502056142": { name: "CHEN,SHLENA NUOXUAN", class: "高级中文B" },
            "2502056145": { name: "LOITERTON,HARRISON LEO", class: "高级中文B" },
            "2502056150": { name: "SUN,SOPHIA YUFEI", class: "高级中文B" },
            "2502056152": { name: "YAO,YANTING", class: "高级中文B" },
            "2502056160": { name: "DU,SARAH", class: "高级中文B" },
            "2502056194": { name: "HSUEH, ELEANOR", class: "高级中文B" },
            "2502056280": { name: "VERDICCHIO, STEFANIA", class: "高级中文B" },
            "2502056314": { name: "OMARBEKOVA, MADINA", class: "高级中文B" },
            "2502056315": { name: "NOZAKI, CHIE", class: "高级中文B" },
            "2502056337": { name: "NAM, HYUN WOOK", class: "高级中文B" },
            "2502056363": { name: "YUN, SUYOUNG", class: "高级中文B" },
            "2502056457": { name: "SODEN, KAYLEIGH MARIE", class: "高级中文B" },
            "2502056429": { name: "SHIN, YUJIN", class: "高级中文B" },
            "2502056433": { name: "OH, SEUNGEUN", class: "高级中文B" },
            "2502056435": { name: "JO, YUJIN", class: "高级中文B" },
            "2502056436": { name: "LEE, SEOJIN", class: "高级中文B" },
            "2502056447": { name: "SHIN, YUMIN", class: "高级中文B" },
            "2502056134": { name: "FU, ANNA", class: "高级中文B" },
            "2502056137": { name: "MERRILEES, GRACE", class: "高级中文B" },
            "2502056143": { name: "CHO, CYNTHIA XIWEN", class: "高级中文B" },
            "2502056144": { name: "YIU, VIVIAN ANWEI", class: "高级中文B" },
            "2502056146": { name: "FORRER, MARCEL CONSTANTINE", class: "高级中文B" },
            "2502056147": { name: "THAI-HAYNES, WEI", class: "高级中文B" },
            "2502056148": { name: "SEDGWICK, CHARLOTTE ZOE", class: "高级中文B" },
            "2502056159": { name: "PRABOWO, CATHERINE", class: "高级中文B" },
            "2502056387": { name: "WU, CHRISTOPHER", class: "中级中文A" },
            "2502055615": { name: "ZHANG, CAROL", class: "中级中文A" },
            "2502056348": { name: "FALORNI, ANNA", class: "中级中文A" },
            "2502055369": { name: "STOCKMAYR, ALWIN", class: "中级中文A" },
            "2502055696": { name: "NGUYEN, THI MINH HANG", class: "中级中文A" },
            "2502055823": { name: "KETSAVA, KRIT", class: "中级中文A" },
            "2502055900": { name: "NICHOLAS GUO", class: "中级中文A" },
            "2502055913": { name: "FLORES RODRIGUEZ, PATRICIA", class: "中级中文A" },
            "2502056118": { name: "BAUMGARTNER, PHILIPPE LUCAS", class: "中级中文A" },
            "2502056193": { name: "NIEDERBERGER, ELENA", class: "中级中文A" },
            "2502056416": { name: "KIM, JAECHEOL", class: "中级中文A" },
            "2502056409": { name: "YANG, YUNSEO", class: "中级中文A" },
            "2502056420": { name: "LIM, SEEUN", class: "中级中文A" },
            "2502056421": { name: "LIM, GYURI", class: "中级中文A" },
            "2502056426": { name: "SONG, HAEUN", class: "中级中文A" },
            "2502056129": { name: "SUKSUBWASIN, WARUNEE", class: "中级中文A" },
            "2502056139": { name: "CHAN, STEPHEN MING KIT", class: "中级中文A" },
            "2502056123": { name: "DONOHOE, KALANI MARIE", class: "中级中文A" },
            "2502056125": { name: "WO, EILEEN", class: "中级中文A" },
            "2502056127": { name: "HOPKINS, CASSIUS FINN KEPARS", class: "中级中文A" },
            "2502055032": { name: "YANG, JOSHUA", class: "中级中文B" },
            "2502055695": { name: "KANG, RYANGKYUNG", class: "中级中文B" },
            "2502055674": { name: "LAUTOUR, GABRIEL", class: "中级中文B" },
            "2502056464": { name: "KHANPAKDEE, PHRAEPHALIN", class: "中级中文B" },
            "2502056465": { name: "KHANPAKDEE, PHRAEPHLOI", class: "中级中文B" },
            "2502055218": { name: "ASPROT, VIKTOR JUNO CONNOR", class: "中级中文B" },
            "2502055219": { name: "ENCINAS RODEA, MARIO", class: "中级中文B" },
            "2502055841": { name: "AMIEL, LAURA", class: "中级中文B" },
            "2502055988": { name: "KHOORY, MAE MOHAMMAD MIR HASHEM", class: "中级中文B" },
            "2502056115": { name: "HAN GUAN, MIREIA", class: "中级中文B" },
            "2502056222": { name: "SURGENOR, TRISTAN MARK", class: "中级中文B" },
            "2502056264": { name: "SHEN, EMMA HONG", class: "中级中文B" },
            "2502056349": { name: "FUJIKAWA, MAKI", class: "高级商务汉语" },
            "2502055030": { name: "KRIYOKUCHA, ANNA", class: "高级商务汉语" },
            "2502055223": { name: "KHUONAZAROVA, RASIMA", class: "高级商务汉语" },
            "2502055224": { name: "FARRANDS, INEZ MARGARITA BUENVIAJE", class: "高级商务汉语" },
            "2502055640": { name: "ZHIKHAREY, VALERII", class: "高级商务汉语" },
            "2502055830": { name: "WEN, LIANGYU", class: "高级商务汉语" },
            "2502055912": { name: "YOUNGMI, PARK", class: "高级商务汉语" },
            "2502055989": { name: "NGUEN, TKHI MI KHA", class: "高级商务汉语" },
            "2502056107": { name: "ZHOU, XIAOLIANG", class: "高级商务汉语" },
            "2502056181": { name: "KIM, YEOBIN", class: "高级商务汉语" },
            "2502056188": { name: "CHEN, JIEYING", class: "高级商务汉语" },
            "2502056262": { name: "DINH, PHUONG HANG", class: "高级商务汉语" },
            "2502056263": { name: "NGUYEN, LE THUY NHIEN", class: "高级商务汉语" },
            "2502056329": { name: "CAO, THI THUY NGA", class: "高级商务汉语" },
            "2502056373": { name: "CHEN, CINDY SIMIN", class: "高级商务汉语" },
            "2502056378": { name: "ENGEL, ELISABETTA", class: "高级商务汉语" },
            "2502056434": { name: "ENG, BOON SIANG", class: "高级商务汉语" },
            "2502056462": { name: "WIDJAYA, JASON LYMAND", class: "高级商务汉语" },
            "2502056372": { name: "HELBIN, CHASSE REMINGTON", class: "高级商务汉语" },
            "2502056386": { name: "KANG, MINJU", class: "高级商务汉语" },
            "2502056469": { name: "FIKRU, DIBORA ABRAHAM FIKRU", class: "高级商务汉语" },
            "2502056510": { name: "SEMINA, ELIZAVETA", class: "高级商务汉语" },
            "2502055672": { name: "PHEDRA, NATHANIA", class: "高级商务汉语" },
            "2502055829": { name: "AGENMONMEN, EJEMEN OSCREMEN", class: "高级商务汉语" },
            "2502055911": { name: "VESALAINEN, HELMI", class: "高级商务汉语" },
            "2502055941": { name: "YAU,XIN YI YAU", class: "高级商务汉语" },
            "2502055966": { name: "WOLDEMICHAEL, RUTH", class: "高级商务汉语" },
            "2502056364": { name: "VAN BRUINESSEN, MARTIJN HENDRIKUS MARIA", class: "高级商务汉语" },
            "2502056401": { name: "RYU, BEE", class: "高级商务汉语" },
            "2502056430": { name: "JANG, YUNHA", class: "高级商务汉语" },
            "2502056412": { name: "GIL, HYUNJOO", class: "高级商务汉语" },
            "2502056403": { name: "HAN,JIWON", class: "高级商务汉语" },
            "2502056407": { name: "WIE, HAESEO", class: "高级商务汉语" },
            "2502056414": { name: "KIM, MINYOUNG", class: "高级商务汉语" },
            "2502056431": { name: "JUNG, CHEYOUNG", class: "高级商务汉语" },
            "2502056173": { name: "RINALDI, BIRGITTA", class: "高级商务汉语" },
            "2502056172": { name: "NEVO, TAMARA", class: "高级商务汉语" },
            "2502056350": { name: "BUSHNAQ, TAOWA ABDULRAHEIM M", class: "基础中文A" },
            "2502056406": { name: "PHYU SIN WIN WIN HAN", class: "基础中文A" },
            "2502056468": { name: "KHAN, SHARIO HASAN", class: "基础中文A" },
            "2502056512": { name: "YELEUSSIZ, MOLDIR", class: "基础中文A" },
            "2502056108": { name: "ZHANG, DIANE", class: "基础中文A" },
            "2502056467": { name: "JADOON, AHMED HAMEED KHAN", class: "基础中文A" },
            "2502055372": { name: "DIAZ, MAX", class: "基础中文A" },
            "2502055367": { name: "MCKEE, TROY", class: "基础中文A" },
            "2502055608": { name: "MAZLOUMIAN, ARSHAK KHATCHIK", class: "基础中文A" },
            "2502055903": { name: "FLETTAS RAMIREZ, ANGELA SOFIA", class: "基础中文A" },
            "2502056428": { name: "KHAN, MUHAMMAD ATHAR", class: "基础中文A" },
            "2502056295": { name: "HUANG, FRANKLIN", class: "基础中文A" },
            "2502056221": { name: "CRUINS, MAX", class: "基础中文A" },
            "2502056260": { name: "LERCHER, CLAUDIO PIERO", class: "基础中文A" },
            "2502055942": { name: "DE JONG,MARY FRANSCISCA LANCIAN", class: "基础中文B" },
            "2502055985": { name: "NGUYEN,BAO LINH", class: "基础中文B" },
            "2502056106": { name: "CHANG,AUDREY XING-YUN", class: "基础中文B" },
            "2502056117": { name: "NGUYEN,TRA MY", class: "基础中文B" },
            "2502056191": { name: "WU,DE JIANG", class: "基础中文B" },
            "2502056312": { name: "TSE,MARLENE ADELINA LINGSI", class: "基础中文B" },
            "2502056358": { name: "ANDERSON,HANNAH", class: "基础中文B" },
            "2502056365": { name: "BADAMTSEREN,JARGALMAA", class: "基础中文B" },
            "2502056374": { name: "HO,THI GIANG MY", class: "基础中文B" },
            "2502056405": { name: "DIETRICH,JAN", class: "基础中文B" },
            "2502056423": { name: "LEE,JUHEE", class: "基础中文B" },
            "2502056402": { name: "SIM,HYEONSEO", class: "基础中文B" },
            "2502056404": { name: "YANG,HANSEUL", class: "基础中文B" },
            "2502056408": { name: "KWON,MINJEONG", class: "基础中文B" },
            "2502056411": { name: "YI,HYEJUN", class: "基础中文B" },
            "2502056413": { name: "JUNG,MINJAE", class: "基础中文B" },
            "2502056151": { name: "QGALLAGHER,TIEGAN", class: "基础中文B" },
            "2502056122": { name: "LE,DUNG NGOC THI", class: "基础中文B" },
            "2502056418": { name: "GAO,ROLLIN", class: "初级中文A" },
            "2502056442": { name: "NGUYEN,DAMIAN JASON", class: "初级中文A" },
            "2502056222": { name: "FONG,WILLIAM CHUNG CHING", class: "初级中文A" },
            "2502055371": { name: "KWAN,WILLIAM ZHITIAN", class: "初级中文A" },
            "2502055611": { name: "DUKURAY,ISMAEI MA", class: "初级中文A" },
            "2502055612": { name: "LUO,KELLY", class: "初级中文A" },
            "2502055613": { name: "LI-ROONEY,KYLE", class: "初级中文A" },
            "2502055649": { name: "YAU CHEN,EVELYN", class: "初级中文A" },
            "2502055724": { name: "RENN,THOMAS FRANCIS", class: "初级中文A" },
            "2502055746": { name: "ROOK,LEANNE", class: "初级中文A" },
            "2502055822": { name: "TRINH,DIEU LINH", class: "初级中文A" },
            "2502055914": { name: "HE,JACK YUJIA", class: "初级中文A" },
            "2502056417": { name: "HAN,SONGYI", class: "初级中文A" },
            "2502056427": { name: "BAEK,JURI", class: "初级中文A" },
            "2502056432": { name: "KIM,KYOUNGHWA", class: "初级中文A" },
            "2502056437": { name: "YANG,MINHYE", class: "初级中文A" },
            "2502056438": { name: "KIM,DAHAE", class: "初级中文A" },
            "2502056441": { name: "HONG,DAJEONG", class: "初级中文A" },
            "2502056444": { name: "LEE,YOUNGJOO", class: "初级中文A" },
            "2502055031": { name: "WANG,HENRY", class: "初级中文B" },
            "2502055388": { name: "THOMSON,GEORGE HENRY", class: "初级中文B" },
            "2502055821": { name: "SCHMITT, SVEN JEREMIE ERIC", class: "初级中文B" },
            "2502056309": { name: "ZUCCALA,LANA MELIA", class: "初级中文B" },
            "2502056379": { name: "TOWNSEND,CHELSEA MARION", class: "初级中文B" },
            "2502055215": { name: "MULLEN,EUAN DOUGLAS", class: "初级中文B" },
            "2502055641": { name: "CHUA,JEROME ALFRED", class: "初级中文B" },
            "2502055894": { name: "LIMSAVANH,ALEXANDRE", class: "初级中文B" },
            "2502056116": { name: "AGREST,THOMAS", class: "初级中文B" },
            "2502056220": { name: "PARK,JU HAE", class: "初级中文B" },
            "2502056230": { name: "SHI,WILLIAM", class: "初级中文B" },
            "2502056336": { name: "GONZALEZ ELGUETA,ALEIX", class: "初级中文B" },
            "2502056377": { name: "CHEN,JACKY", class: "初级中文B" },
            "2502056410": { name: "KOZERSKI,MACIEJ", class: "初级中文B" },
            "2502056440": { name: "ABDULLA SAEED SALEH NASER ALHEMEIRI", class: "初级中文B" }
        };

        // 课程表数据
        const schedules = {
            "基础中文A": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "乔晔", "teacher2": "王献玥", "classroom": "学院116" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "乔晔", "teacher2": "王献玥", "classroom": "学院116" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "乔晔", "teacher2": "王献玥", "classroom": "学院116" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "乔晔", "teacher2": "王献玥", "classroom": "学院116" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "乔晔", "teacher2": "王献玥", "classroom": "学院116" }
                ]
            },
            "基础中文B": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王献玥", "teacher2": "乔晔", "classroom": "学院117" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王献玥", "teacher2": "乔晔", "classroom": "学院117" },
                    { "day": "星期三", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王献玥", "teacher2": "乔晔", "classroom": "学院117" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王献玥", "teacher2": "乔晔", "classroom": "学院117" },
                    { "day": "星期五", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王献玥", "teacher2": "乔晔", "classroom": "学院117" }
                ]
            },
            "初级中文A": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王岳", "teacher2": "陨怡霖", "classroom": "四教303" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王岳", "teacher2": "陨怡霖", "classroom": "四教303" },
                    { "day": "星期三", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王岳", "teacher2": "陨怡霖", "classroom": "四教303" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王岳", "teacher2": "陨怡霖", "classroom": "四教303" },
                    { "day": "星期五", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "王岳", "teacher2": "陨怡霖", "classroom": "四教303" }
                ]
            },
            "初级中文B": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "陨怡霖", "teacher2": "王岳", "classroom": "四教304" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "陨怡霖", "teacher2": "王岳", "classroom": "四教304" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "陨怡霖", "teacher2": "王岳", "classroom": "四教304" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "陨怡霖", "teacher2": "王岳", "classroom": "四教304" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "陨怡霖", "teacher2": "王岳", "classroom": "四教304" }
                ]
            },
            "初级中文C": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "徐晶凝", "teacher2": "张雯雯", "classroom": "四教305" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "张雯雯", "teacher2": "徐晶凝", "classroom": "四教305" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "徐晶凝", "teacher2": "张雯雯", "classroom": "四教305" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "张雯雯", "teacher2": "徐晶凝", "classroom": "四教305" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "徐晶凝", "teacher2": "张雯雯", "classroom": "四教305" }
                ]
            },
            "中级中文A": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "石克延", "teacher2": "魏玮", "classroom": "四教403" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "石克延", "teacher2": "魏玮", "classroom": "四教403" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "石克延", "teacher2": "魏玮", "classroom": "四教403" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "石克延", "teacher2": "魏玮", "classroom": "四教403" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "石克延", "teacher2": "魏玮", "classroom": "四教403" }
                ]
            },
            "中级中文B": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "魏玮", "teacher2": "石克延", "classroom": "四教404" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "魏玮", "teacher2": "石克延", "classroom": "四教404" },
                    { "day": "星期三", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "魏玮", "teacher2": "石克延", "classroom": "四教404" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "魏玮", "teacher2": "石克延", "classroom": "四教404" },
                    { "day": "星期五", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "魏玮", "teacher2": "石克延", "classroom": "四教404" }
                ]
            },
            "中级中文C": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "张雁", "teacher2": "辛平", "classroom": "四教405" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "辛平", "teacher2": "张雁", "classroom": "四教405" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "张雁", "teacher2": "辛平", "classroom": "四教405" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "辛平", "teacher2": "张雁", "classroom": "四教405" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "张雁", "teacher2": "辛平", "classroom": "四教405" }
                ]
            },
            "中级中文D": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "赵丹琪", "teacher2": "王海峰", "classroom": "四教406" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "赵丹琪", "teacher2": "王海峰", "classroom": "四教406" },
                    { "day": "星期三", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "赵丹琪", "teacher2": "王海峰", "classroom": "四教406" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "赵丹琪", "teacher2": "王海峰", "classroom": "四教406" },
                    { "day": "星期五", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "赵丹琪", "teacher2": "王海峰", "classroom": "四教406" }
                ]
            },
            "高级中文A": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "李丽", "teacher2": "孙懿涵", "classroom": "学院115", "note": "7.3日汉语课由路云老师上" },
                    { "day": "星期二", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "李丽", "teacher2": "孙懿涵", "classroom": "学院115" },
                    { "day": "星期三", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "李丽", "teacher2": "路云", "classroom": "学院115" },
                    { "day": "星期四", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "李丽", "teacher2": "孙懿涵", "classroom": "学院115" },
                    { "day": "星期五", "period1": "口语 8:00-9:50", "period2": "汉语 10:10-12:00", "teacher1": "李丽", "teacher2": "孙懿涵", "classroom": "学院115" }
                ]
            },
            "高级中文B": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "崔华山", "teacher2": "王玉", "classroom": "学院118" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "崔华山", "teacher2": "王玉", "classroom": "学院118" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "崔华山", "teacher2": "王玉", "classroom": "学院118" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "崔华山", "teacher2": "王玉", "classroom": "学院118" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "崔华山", "teacher2": "王玉", "classroom": "学院118" }
                ]
            },
            "高级中文C": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "金飔爽", "teacher2": "孔令跃", "classroom": "学院105", "note": "后两周汉语、口语上课时间对调" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "金飔爽", "teacher2": "孔令跃", "classroom": "学院105" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "金飔爽", "teacher2": "孔令跃", "classroom": "学院105" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "金飔爽", "teacher2": "孔令跃", "classroom": "学院105" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "金飔爽", "teacher2": "孔令跃", "classroom": "学院105" }
                ]
            },
            "高级中文D": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "李红印", "teacher2": "孟若愚", "classroom": "学院111" },
                    { "day": "星期二", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "李红印", "teacher2": "孟若愚", "classroom": "学院111" },
                    { "day": "星期三", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "李红印", "teacher2": "孟若愚", "classroom": "学院111" },
                    { "day": "星期四", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "李红印", "teacher2": "孟若愚", "classroom": "学院111" },
                    { "day": "星期五", "period1": "汉语 8:00-9:50", "period2": "口语 10:10-12:00", "teacher1": "李红印", "teacher2": "孟若愚", "classroom": "学院111" }
                ]
            },
            "高级商务汉语": {
                "classTime": "06月30日-07月25日",
                "schedule": [
                    { "day": "星期一", "period1": "商务汉语 10:10-12:00", "period2": "听说 8:00-9:50", "teacher1": "崔华山", "teacher2": "孙懿涵", "classroom": "学院103" },
                    { "day": "星期二", "period1": "商务汉语 10:10-12:00", "period2": "听说 8:00-9:50", "teacher1": "崔华山", "teacher2": "孙懿涵", "classroom": "学院103" },
                    { "day": "星期三", "period1": "商务汉语 10:10-12:00", "period2": "听说 8:00-9:50", "teacher1": "崔华山", "teacher2": "孙懿涵", "classroom": "学院103" },
                    { "day": "星期四", "period1": "商务汉语 10:10-12:00", "period2": "听说 8:00-9:50", "teacher1": "崔华山", "teacher2": "孙懿涵", "classroom": "学院103" },
                    { "day": "星期五", "period1": "商务汉语 10:10-12:00", "period2": "听说 8:00-9:50", "teacher1": "崔华山", "teacher2": "孙懿涵", "classroom": "学院103" }
                ]
            }
        };

        function checkStudentId() {
            const studentId = document.getElementById('studentId').value.trim();
            const errorMsg = document.getElementById('errorMsg');
            const nameConfirmation = document.getElementById('nameConfirmation');
            const studentName = document.getElementById('studentName');
            
            if (students[studentId]) {
                errorMsg.style.display = 'none';
                studentName.textContent = students[studentId].name;
                nameConfirmation.style.display = 'block';
                // 存储当前查询的学号
                nameConfirmation.dataset.studentId = studentId;
            } else {
                errorMsg.style.display = 'block';
                nameConfirmation.style.display = 'none';
                document.getElementById('classInfo').style.display = 'none';
            }
        }

        function showClassInfo() {
            const nameConfirmation = document.getElementById('nameConfirmation');
            const classInfo = document.getElementById('classInfo');
            const className = document.getElementById('className');
            const scheduleTable = document.getElementById('scheduleTable');
            
            const studentId = nameConfirmation.dataset.studentId;
            const studentClass = students[studentId].class;
            
            className.textContent = studentClass;
            
            // 生成课程表
            const schedule = schedules[studentClass];
            let tableHtml = `<p>上课日期：${schedule.classTime}</p>`;
            tableHtml += `<table class="schedule">
                <tr>
                    <th>星期</th>
                    <th>第1-2节 (8:00-9:50)</th>
                    <th>第3-4节 (10:10-12:00)</th>
                    <th>教师</th>
                    <th>教室</th>
                    <th>备注</th>
                </tr>`;
            
            schedule.schedule.forEach(daySchedule => {
                tableHtml += `<tr>
                    <td>${daySchedule.day}</td>
                    <td>${daySchedule.period1}</td>
                    <td>${daySchedule.period2}</td>
                    <td>${daySchedule.teacher1}/${daySchedule.teacher2}</td>
                    <td>${daySchedule.classroom}</td>
                    <td>${daySchedule.note || ''}</td>
                </tr>`;
            });
            
            tableHtml += `</table>`;
            scheduleTable.innerHTML = tableHtml;
            
            nameConfirmation.style.display = 'none';
            classInfo.style.display = 'block';
        }

        function resetForm() {
            document.getElementById('studentId').value = '';
            document.getElementById('errorMsg').style.display = 'none';
            document.getElementById('nameConfirmation').style.display = 'none';
            document.getElementById('classInfo').style.display = 'none';
        }
    </script>
</body>
</html>